package com.ysd.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author dapeng
 * @since 2021-07-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="OptionsRecord对象", description="")
public class OptionsRecord extends Model<OptionsRecord> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "学生id")
    private Integer stuId;

    @ApiModelProperty(value = "学生名字")
    private String stuName;

    @ApiModelProperty(value = "所属Id")
    private Integer paperId;

    @ApiModelProperty(value = "题目id")
    private Integer topicId;

    @ApiModelProperty(value = "答案")
    private String optionsId;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "1:试卷练习 2:章节练习(如果是章节练习，paper_id为章节id) 3: 每日一练(paper_id=0)")
    private Integer type;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
